package com.wskeee.ec.components.tree
{
	import com.wskeee.ec.components.list.BaseListData;
	import com.wskeee.ec.interfaces.IList;
	
	public class TreeListData extends BaseListData
	{
		public function TreeListData(label:String, owner:IList,parent:TreeListData,depth:int,data:Object)
		{
			super(label, owner);
			this.parent = parent;
			this.depth = depth;
			this.data = data;
		}
		
		public var parent:TreeListData;
		public var children:Vector.<TreeListData>;
		public var depth:int;
		public var isOpen:Boolean;
		public var data:Object;
		
		public function get hasChildren():Boolean
		{
			return children && children.length>0;
		}
	}
}